<template>
	<view>
		<view class="mysearch" @click="searchClick" :style="{backgroundColor:`${bgc}`}">
			<view class="searchinput" :style="{borderRadius:`${radius}rpx`}">
				<uni-icons type="search" size="20"></uni-icons>
				搜索
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			bgc: {
				type: String,
				default: '#c00000'
			},
			radius: {
				type: Number,
				default: 35
			}
		},
		name: "my-search",
		data() {
			return {

			};
		},
		methods: {
			searchClick() {
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
	.mysearch {
		// background-color: #c00000;
		padding: 20rpx;

		.searchinput {
			font-size: 14px;
			height: 70rpx;
			background-color: #fff;
			// border-radius: 35rpx;
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}
</style>
